﻿using System;
using System.Collections.Generic;
using System.Text;

namespace IceDog.DNL.CSharp.DesignPattern.DecoratorPattern.LOLHero
{
    public abstract class SkillDecorator:IHeroAction
    {
        protected IHeroAction Hero { get; set; }

        protected SkillDecorator(IHeroAction hero)
        {
            Hero = hero;
        }

        /// <summary>
        /// 学习技能
        /// </summary>
        /// <param name="skillName">技能名</param>
        public virtual void LearnSkill(string skillName)
        {
            Hero.LearnSkill(skillName);
        }
    }
}
